import request from '@/utils/request'

// 查询bom模型列表
export function listCost1(query) {
  return request({
    url: '/system/bomCost/list1',
    method: 'get',
    params: query
  })
}

export function listCost3(query) {
    return request({
      url: '/system/bomCost/list3',
      method: 'get',
      params: query
    })
  }

// 查询bom模型详细
export function getCost(id) {
  return request({
    url: '/system/bomCost/' + id,
    method: 'get'
  })
}

// 新增bom模型
export function addCost(data) {
  return request({
    url: '/system/bomCost',
    method: 'post',
    data: data
  })
}

// 修改bom模型
export function updateCost(data) {
  return request({
    url: '/system/bomCost',
    method: 'put',
    data: data
  })
}

// 删除bom模型
export function delCost(id) {
  return request({
    url: '/system/bomCost/' + id,
    method: 'delete'
  })
}
